<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import=" java.util.List"%>
<%@ page import=" java.text.DecimalFormat"%>
<%@ page import=" com.demo.entity.CartInfoList"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的购物车-修改购物车商品数量</title>
</head>
<body>
	<fieldset>
		<legend style="color: #00f"> <h3>修改购物车商品数量 . . . </h3></legend>
		<form action="/WebStoreSSM/controller/changeCartProductNum" method="post">
		<table >
		    <%
                CartInfoList carChInfo = (CartInfoList)session.getAttribute("carChInfo");
            %>
			<tr><th>商品名：</th><th><input type="text" name="pname" value="<%=carChInfo.getP_name()%>" style="outline: none;" readonly="readonly"/></th></tr>
			<tr><th>单价：</th><th><%=carChInfo.getP_price()%></th></tr>
			<tr>
				<th>数量：</th>
				<th > 
                    <select name="changeNum">
                            <option value="<%=carChInfo.getP_buynum()%>"><%=carChInfo.getP_buynum()%></option>
                    <%for(int cnum=1;cnum<=100;cnum++){ %>
                            <option value="<%=cnum %>"><%=cnum %></option>
                     <%} %>
                    </select>
                </th>
			</tr>
            
            <tr align="center" height="60px"><th colspan="2"><input type="submit" value="提交修改"/></th></tr>
            <tr><th colspan="2"><a href="/WebStoreSSM/controller/cart_list_action">返回购物车</a></th></tr>
		</table>
		</form>
	</fieldset>
</body>
</html>